Skip to content

Conversation

@mcheshkov
Copy link
Contributor

Check List

  • Tests have been run in packages where changes made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet
  • Docs have been added / updated if required

Description of Changes Made (if issue reference is not provided)

This should avoid unexpected unifications of simplified expression in unrelated context. For example, same expression can be present in filter and projection, but due to over-unification in filters it can receive different representation in projection, and break aliases later, during extraction

@codecov
Copy link

codecov bot commented Feb 26, 2025

Codecov Report

Attention: Patch coverage is 96.66667% with 12 lines in your changes missing coverage. Please review.

Project coverage is 83.73%. Comparing base (3f94bff) to head (9d2daaf).
Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
...besql/cubesql/src/compile/rewrite/rules/filters.rs 95.83% 12 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9278      +/-   ##
==========================================
+ Coverage   83.68%   83.73%   +0.05%     
==========================================
  Files         228      228              
  Lines       82016    82249     +233     
==========================================
+ Hits        68632    68875     +243     
+ Misses      13384    13374      -10     
Flag Coverage Δ
cubesql 83.73% <96.66%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mcheshkov mcheshkov force-pushed the filter-replacer-push-pull branch from 7df76e1 to e8997bd Compare March 4, 2025 10:26
@mcheshkov mcheshkov marked this pull request as ready for review March 4, 2025 11:05
@mcheshkov mcheshkov requested a review from a team as a code owner March 4, 2025 11:05
@mcheshkov mcheshkov force-pushed the filter-replacer-push-pull branch from e8997bd to 9333240 Compare March 4, 2025 14:38
@MazterQyou MazterQyou self-requested a review March 4, 2025 16:07
This should avoid unexpected unifications of simplified expression in unrelated context. For example, same expression can be present in filter and projection, but due to over-unification in filters it can receive different representation in projection, and break aliases later, during extraction
@mcheshkov mcheshkov force-pushed the filter-replacer-push-pull branch from 9333240 to 9d2daaf Compare March 4, 2025 20:42
@mcheshkov mcheshkov merged commit ab5a64e into master Mar 5, 2025
83 checks passed
@mcheshkov mcheshkov deleted the filter-replacer-push-pull branch March 5, 2025 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants